package com.atguigu.mybatis.entity;

public class Pig {

    private Integer id;
    private String pigName;
    private Cooker cooker;

    @Override
    public String toString() {
        return "Pig{" +
                "id=" + id +
                ", pigName='" + pigName + '\'' +
                ", cooker=" + cooker +
                '}';
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getPigName() {
        return pigName;
    }

    public void setPigName(String pigName) {
        this.pigName = pigName;
    }

    public Cooker getCooker() {
        return cooker;
    }

    public void setCooker(Cooker cooker) {
        this.cooker = cooker;
    }

    public Pig(Integer id, String pigName, Cooker cooker) {
        this.id = id;
        this.pigName = pigName;
        this.cooker = cooker;
    }

    public Pig() {
    }
}
